import Vue from "vue";
import ElementUI from "element-ui";
import VueClipboard from "vue-clipboard2";
import ECharts from "vue-echarts";
import "element-ui/lib/theme-chalk/index.css";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { vueInstance } from "./common/ajax";
import axios from "axios";
import Blob from "@/excel/Blob.js";
import Export2Excel from "@/excel/Export2Excel.js";
import VueAxios from 'vue-axios'
import vDialog from 'v-dialogs';
import exportToPdf from "@/utils/exportToPdf";
Vue.use(exportToPdf);
Vue.use(VueAxios, axios);
Vue.config.productionTip = false;

Vue.use(ElementUI);
Vue.use(VueClipboard);

Vue.component("v-chart", ECharts);
Vue.use(vDialog);
let instance = new Vue({
  router,
  store,
  // axios,
  render: h => h(App)
}).$mount("#app");

vueInstance.instance = instance;
vueInstance.store = instance.$store;
axios.defaults.headers.post['Content-Type'] = 'application/json';